package org.dromara.xhlj.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import org.dromara.starter.jpacomment.annotation.SailColumn;
import org.dromara.starter.jpacomment.annotation.SailIndex;
import org.dromara.starter.jpacomment.annotation.SailTable;
import org.dromara.starter.jpacomment.enums.IndexType;
/**
 * 大会新闻对象 xhlj_news
 *
 * @author yf
 * @date 2024-07-28
 */

@Data
@TableName("xhlj_news")
@Entity
@Table(name = "xhlj_news")
@SailTable(comment = "大会新闻表", indexs = {
    @SailIndex(name = "idx_del_flag", type = IndexType.BTREE,
       columns = {"del_flag"}
    ),    @SailIndex(name = "idx_news_title", type = IndexType.BTREE,
       columns = {"news_title"}
    ),    @SailIndex(name = "idx_create_time", type = IndexType.BTREE,
       columns = {"create_time"}
    )}
)
public class XhljNews implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    public static final String TRANS_ID_TO_VO = "xhlj_news_vo";
    public static final String TRANS_ID_TO_VO_LIST = "xhlj_news_list";
    /**
     * 新闻id
     */
    @TableId(value = "news_id", type = IdType.AUTO)
    @Id
    private Integer newsId;
    /**
     * 新闻标题
     */
    @Column(name = "news_title")
    @SailColumn(comment = "新闻标题",type = "varchar(100)", defaultValue = "NULL")
    private String newsTitle;
    /**
     * 大会id
     */
    @SailColumn(comment = "大会id",type = "int", defaultValue = "NULL")
    @Column(name = "conference_info_id")
    private Integer conferenceInfoId;
    /**
     * 创建人sys_user（大会管理员/活动负责人）
     */
    @SailColumn(comment = "创建人sys_user（大会管理员/活动负责人）",type = "int", defaultValue = "NULL")
    @Column(name = "create_by")
    private Integer createBy;
    /**
     * 新闻内容
     */
    @Column(name = "news_content")
    @SailColumn(comment = "新闻内容",type = "text", defaultValue = "NULL")
    private String newsContent;
    /**
     * 新闻地点
     */
    @Column(name = "news_location")
    @SailColumn(comment = "新闻地点",type = "varchar(200)", defaultValue = "NULL")
    private String newsLocation;
    /**
     * 新闻图片
     */
    @Column(name = "news_image")
    @SailColumn(comment = "新闻图片",type = "text", defaultValue = "NULL")
    private String newsImage;
    /**
     * 新闻图片描述
     */
    @Column(name = "news_description")
    @SailColumn(comment = "新闻图片描述",type = "varchar(255)", defaultValue = "NULL")
    private String newsDescription;
    /**
     * 新闻视频
     */
    @Column(name = "news_video_file")
    @SailColumn(comment = "新闻视频",type = "text", defaultValue = "NULL")
    private String newsVideoFile;
    /**
     * 新闻视频描述
     */
    @Column(name = "news_video_description")
    @SailColumn(comment = "新闻视频描述",type = "varchar(255)", defaultValue = "NULL")
    private String newsVideoDescription;
    /**
     * 新闻标签（0=网络安全，1=AI人工智能，2=物联网安全）
     */
    @Column(name = "new_tags")
    @SailColumn(comment = "新闻标签（0=网络安全，1=AI人工智能，2=物联网安全）",type = "char(3)", defaultValue = "NULL")
    private String newTags;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "create_time")
    @SailColumn(comment = "创建时间",type = "timestamp", defaultValue = "CURRENT_TIMESTAMP")
    private Date createTime;
    /**
     * 删除标志
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "del_flag")
    @SailColumn(comment = "删除标志",type = "char(1)", defaultValue = "0")
    private String delFlag;
}
